
@Slf4j
@RestController
@RequestMapping("/v1/acceptance")
public class AcceptanceController {

    @Autowired
    AcceptanceService acceptanceService;

    @GetMapping("select")
    public JsonResult getAcceptanceList(AcceptanceQuery acceptanceQuery) {
        log.debug("查询入参:{}", acceptanceQuery);
        List<AcceptanceQuery> list = acceptanceService.getValitionQueryList(acceptanceQuery);
        log.debug("查询结果出参:{}", list);
        return JsonResult.ok(list);
    }

    @PostMapping("update")
    public JsonResult updateAcceptance(@RequestBody AcceptanceSaveParam acceptanceSaveParam) { // 添加 @RequestBody 注解
        log.debug("更新入参:{}", acceptanceSaveParam);
        acceptanceService.saveAcceptance(acceptanceSaveParam);
        return JsonResult.ok();
    }

}